package com.wealth.system.service;

import java.util.List;

import iaas.service.IBaseService;

import com.wealth.system.entity.Role;

/**
 * 
 * @author chan
 */

public interface IRoleService extends IBaseService<Role> {
	
	public void saveRole(Role role);

	public void updateRole(Role role);

	/** 企业+状态 */
	public List<Role> getRoleByCorpIdAndStatus(Long corpid,Integer status) throws Exception;
	
	/** 企业+用户+状态 */
	public List<Role> getRoleByCorpIdAndUserIdAndStatus(Long corpid,Long userid,Integer status) throws Exception;
}
